'''
Created on 05/05/2010

@author: emlyn
'''
from google.appengine.ext import db
from PSInvoice import PSInvoice
from PSStudent import PSStudent
from DataClass import SiteUser

class PSPayment(db.Model):
    user = db.ReferenceProperty(SiteUser)
    psstudent = db.ReferenceProperty(PSStudent)
    psinvoice = db.ReferenceProperty(PSInvoice)
    datepayed = db.DateProperty()
    amountcents = db.IntegerProperty()
    notes = db.StringProperty(multiline=True)    
